Skip to content

GT-2990 Localization Settings Box (Tools Layout)#4422

Merged
tjohnson009 merged 26 commits into
developfrom
GT-2990-Localization-Settings-Box
May 26, 2026
Merged

GT-2990 Localization Settings Box (Tools Layout)#4422
tjohnson009 merged 26 commits into
developfrom
GT-2990-Localization-Settings-Box

Conversation

@tjohnson009

Copy link
Copy Markdown
Contributor
  • Add Surface box to end of tools layout for personalization
  • Create and insert localizations settings box for tools and lessons pages; lessons WIP

Comment thread app/src/main/kotlin/org/cru/godtools/ui/dashboard/LocalizationSettingsBox.kt Outdated
Comment thread app/src/main/kotlin/org/cru/godtools/ui/dashboard/LocalizationSettingsBox.kt Outdated
Comment thread app/src/main/kotlin/org/cru/godtools/ui/dashboard/LocalizationSettingsBox.kt Outdated
Comment thread app/src/main/kotlin/org/cru/godtools/ui/dashboard/lessons/LessonsLayout.kt Outdated
Comment thread app/src/main/kotlin/org/cru/godtools/ui/dashboard/lessons/LessonsLayout.kt Outdated
Comment thread app/src/main/kotlin/org/cru/godtools/ui/dashboard/tools/ToolsLayout.kt Outdated
@frett

frett commented May 11, 2026

Copy link
Copy Markdown
Contributor

Make sure to add a paparazzi test that shows the new UI you added

@codecov

codecov Bot commented May 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.14%. Comparing base (b431c27) to head (089ff26).
⚠️ Report is 15 commits behind head on develop.

Files with missing lines Patch % Lines
.../godtools/ui/dashboard/lessons/LessonsPresenter.kt 0.00% 2 Missing ⚠️
.../cru/godtools/ui/dashboard/tools/ToolsPresenter.kt 0.00% 2 Missing ⚠️
...u/godtools/ui/dashboard/LocalizationSettingsBox.kt 95.00% 0 Missing and 1 partial ⚠️
...rsonalization/FloatLastItemsToBottomArrangement.kt 90.90% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4422      +/-   ##
===========================================
+ Coverage    51.99%   52.14%   +0.15%     
===========================================
  Files          454      456       +2     
  Lines        12075    12135      +60     
  Branches      2092     2103      +11     
===========================================
+ Hits          6278     6328      +50     
- Misses        5181     5185       +4     
- Partials       616      622       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread app/src/main/kotlin/org/cru/godtools/ui/dashboard/lessons/LessonsLayout.kt Outdated
Comment on lines +9 to +23
internal fun rememberPinLastItemBottomArrangement(): Arrangement.Vertical = remember {
object : Arrangement.Vertical {
override fun Density.arrange(totalSize: Int, sizes: IntArray, outPositions: IntArray) {
var currentOffset = 0
sizes.forEachIndexed { index, size ->
if (index == sizes.lastIndex) {
outPositions[index] = maxOf(currentOffset, totalSize - size)
} else {
outPositions[index] = currentOffset
currentOffset += size
}
}
}
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the reason I had suggested providing an items value to this was so that you could specify the number of items you wanted to pin to the bottom (0, 1, or some other amount). I'm going to pull this branch down and update the Arrangement to support doing that

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, good to know. Claude suggested I remove it after some other changes. I didn't understand why it was there at the time either. I can see how adding the items property gives the composable greater use in other situations.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was one of those things that wasn't a fully fleshed out comment before leaving for a week

@frett frett force-pushed the GT-2990-Localization-Settings-Box branch from 98ae0a7 to 089ff26 Compare May 26, 2026 17:30
@tjohnson009 tjohnson009 merged commit 9493111 into develop May 26, 2026
26 of 29 checks passed
@tjohnson009 tjohnson009 deleted the GT-2990-Localization-Settings-Box branch May 26, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants